import java.util.Scanner;

public class main {
    public static void main(String[] args) {
        ParkingManage parkingManage = new ParkingManage();
        System.out.println("输入你的车牌:");
        Scanner scanner = new Scanner(System.in);
        System.out.println("开始车入库!");
        for (int i = 0; i < 5; i++) {
            System.out.print("输入你的车牌号码:");
            String carLpn = scanner.nextLine();
            parkingManage.enterParking(carLpn);
        }
        parkingManage.show();
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("开始车出库!");
        for (int i = 0; i < 5; i++) {
            System.out.print("输入你的车牌号码:");
            String carLpn = scanner.nextLine();
            parkingManage.outParking(carLpn);
        }
        System.out.println(parkingManage.totalCost());
        parkingManage.show();


    }
}
